<?php
if(in_array($controller, array("voucher"))){
    if($this->input->server('REQUEST_METHOD')=='POST' && $this->input->post('submit') == 'search'){
        $data = array(
            'v_customerName'                        =>  $this->input->post('customersName'),
            'v_booking_place_code'                  =>  $this->input->post('booking_place_code'),
            'v_payment_method'                      =>  $this->input->post('payment_method'),
        );
        $this->session->set_userdata('v_voucher', json_encode($data));
    }
}